﻿# 面向对象 类的实现 __name 会变成 _Student__name
# __name会当成私有变量
#__name__会当成一个特殊变量
class Student(object):
	def __init__(self,name,score):
		self.name = name;
		self.score = score;
	def print_score(self):
		print("%s:%s" % (self.name,self.score));

bart = Student("Bart Sim",59);
lisa = Student("jing",88);
bart.print_score();
bart.score = 1000;
bart.print_score();
lisa.print_score();
